package com.ozo.boot.gen.constant;

import com.ozo.boot.common.base.constant.BaseEnum;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * 数据库类型枚举
 *
 * @author qiangesoft
 * @date 2024-09-15
 */
@Getter
@RequiredArgsConstructor
public enum DbType implements BaseEnum {

    MySQL("com.mysql.cj.jdbc.Driver", "MySQL"),

    Oracle("oracle.jdbc.OracleDriver", "Oracle"),

    SQLServer("com.microsoft.sqlserver.jdbc.SQLServerDriver", "SQLServer"),

    PostgreSQL("org.postgresql.Driver", "PostgreSQL"),

    DM("dm.jdbc.driver.DmDriver", "DM");

    /**
     * 编码
     */
    private final String code;

    /**
     * 描述
     */
    private final String desc;

}